package org.nmgyjt.springboot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.nmgyjt.springboot.beans.admin.CsBusinessUserAuthParamDTO;
import org.nmgyjt.springboot.beans.vo.CsBusinessUserAuthListVo;
import org.nmgyjt.springboot.entity.admin.CsBusinessUserAuth;
import org.nmgyjt.springboot.mapper.CsBusinessUserAuthMapper;
import org.nmgyjt.springboot.service.ICsBusinessUserAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CsBusinessUserAuthServiceImpl extends ServiceImpl<CsBusinessUserAuthMapper, CsBusinessUserAuth> implements ICsBusinessUserAuthService {

    @Autowired
    private CsBusinessUserAuthMapper csBusinessUserAuthMapper;

    @Override
    public IPage<CsBusinessUserAuthListVo> listPage(CsBusinessUserAuthParamDTO bean) {
        Page<CsBusinessUserAuthListVo> page =new Page<>(bean.getCurrent(),bean.getSize());
        IPage<CsBusinessUserAuthListVo> iPage=csBusinessUserAuthMapper.pageList(page,bean);
        return iPage;
    }
}
